import json
import os


class JsonUtils:
    def read_json(path,item):
        return json.load(open(path,'r'))[item] # 对文件的处理，load不能加s
        # 返回的是数据是列表，里面套字典，每个字典有请求参数和响应数据
        # 参考地址https://www.cnblogs.com/xuewei95/p/15129750.html


if __name__ == '__main__':


    root_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
    log_path = os.path.join(root_path, 'python-interface-automation/data/datajson/tag/create.json')
    # print(read_json(log_path,"create"))
    print(os.getcwd())